package com.jichangxiu.common.constant;

/**
 * Constant:
 *
 * @author Jcx
 * @create 2023-04-03 21:49
 */
public interface Constant {

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 登录时候生成 PayLoad 时候的 Key
     */
    public static final String PAYLOAD_KEY = "Jcx-Boot:User";

    /**
     * 平台超管租户 CODE
     */
    public static final String PLATFORM_SUPER_TENANT = "PLATFORM_SUPER_TENANT";

    /**
     * 平台超管部门 CODE
     */
    public static final String PLATFORM_SUPER_DEPT = "PLATFORM_SUPER_DEPT";

    /**
     * 平台超管岗位 CODE
     */
    public static final String PLATFORM_SUPER_POST = "PLATFORM_SUPER_POST";

    /**
     * 平台超管用户 CODE
     */
    public static final String PLATFORM_SUPER_USER = "PLATFORM_SUPER_USER";

    /**
     * 平台超管角色 CODE
     */
    public static final String PLATFORM_SUPER_ROLE = "PLATFORM_SUPER_ROLE";


    /**
     * 普通租户的部门超管 CODE
     */
    public static final String SYSTEM_SUPER_DEPT = "SYSTEM_SUPER_DEPT";

    /**
     * 普通租户的岗位超管 CODE
     */
    public static final String SYSTEM_SUPER_POST = "SYSTEM_SUPER_POST";

    /**
     * 普通租户的用户超管 CODE
     */
    public static final String SYSTEM_SUPER_USER = "SYSTEM_SUPER_USER";

    /**
     * 普通租户的角色超管 CODE
     */
    public static final String SYSTEM_SUPER_ROLE = "SYSTEM_SUPER_ROLE";

    /**
     * 自定义请求标识
     */
    public static final String CUSTOM_MAPPING_ADD_ATTRIBUTE = "CUSTOM_MAPPING_ADD_ATTRIBUTE";

}
